package com.atguigu.gulimall.product.service;

import cn.hutool.core.lang.tree.Tree;
import com.atguigu.gulimall.product.vo.Catelog2Vo;
import com.baomidou.mybatisplus.extension.service.IService;
import com.atguigu.common.utils.PageUtils;
import com.atguigu.gulimall.product.entity.CategoryEntity;

import java.util.List;
import java.util.Map;

/**
 * 商品三级分类
 *
 * @author xiong
 * @email 574646166@qq.com
 * @date 2021-06-24 16:40:32
 */
public interface CategoryService extends IService<CategoryEntity> {

    PageUtils queryPage(Map<String, Object> params);

    List<CategoryEntity>  listWithTree();

    Long[] getCatelogPath(Long catelogId);

    void updateDetail(CategoryEntity category);

    List<Tree<Long>> listwithTreeUtil();

    List<CategoryEntity> getLevel1Category();

    Map<String, List<Catelog2Vo>> getCatelogJson();
}

